package com.community.dao;

import com.community.pojo.AnswerOperation;
import org.apache.ibatis.annotations.Param;

public interface AnswerOperationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AnswerOperation record);

    int insertSelective(AnswerOperation record);

    AnswerOperation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AnswerOperation record);

    int updateByPrimaryKey(AnswerOperation record);

    int findByParam(@Param(value = "aid") Integer aid,
                    @Param(value = "type") Integer type,
                    @Param(value = "userName") String userName,
                    @Param(value = "force") Integer force);

    int updatefForce(@Param(value = "aid") Integer aid,
                     @Param(value = "type") Integer type,
                     @Param(value = "userName") String userName,
                     @Param(value = "oldForce") Integer oldForce,
                     @Param(value = "newForce") Integer newForce);

    int countNumByAid(@Param(value = "aid") Integer aid,
                      @Param(value = "force") Integer force);
}